/**
 * [checkStatus 判断网络状态]
 * @param  {[type]} response [description]
 * @return {[type]}          [description]
 */
export default function checkStatus(response) {
    if (response && response.status >= 200 && response.status < 300) {
        return response.text();
    }
    return undefined;
}